package top.hanbing777.service;

import org.springframework.stereotype.Service;
import top.hanbing777.pojo.Books;
import java.util.List;


public interface BookService {
    //增加一本书
    int addBook(Books books);

    //删除一本书
    int deleteBookById(int id);

    //更新一本书
    int updateBook(Books books);

    //查询一本书
    Books queryBookById(int id);

    //查询全部的书
    List<Books> queryAllBook();

    //根据名字查书籍
    List<Books> queryBookByName(String bookName);


}
